<%@ page language="java" import="java.util.Vector,com.scn.base.page.TreeNode" pageEncoding="UTF-8"%>
<%@ taglib uri="/tags/app" prefix="app"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<HTML>
<HEAD>
    <TITLE>菜单设置</TITLE>
    <META content="MSHTML 6.00.2800.1276" name=GENERATOR>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <META http-equiv=Content-Style-Type content=text/css>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="viewport" content="width=device-width,minimum-scale=1.0"/>
<LINK href="<app:ContextPath/>/gxcss/style1/mainWin1.css" type=text/css  media=screen rel=stylesheet>
<LINK href="<app:ContextPath/>/gxcss/style1/02.css" type=text/css  media=screen rel=stylesheet>
<LINK href="<app:ContextPath/>/gxcss/style1/mainWin2.css" type=text/css  media=screen rel=stylesheet>

</HEAD>
<body marginwidth="0" topmargin="0" leftmargin="0" marginheight="0"><form method="post" id="actForm" name="actForm" action="/OAapp/WebObjects/OAapp.woa/wo/com.oa8000.proj.oasp12.Oasp1310/6DphZ1NRBtPLeMmAVSmnqg/21.0.11.0"><input id="functionName" type="hidden" name="functionName" /><input type="hidden" name="selectedIndexId" />
		<DIV ID=Title_bar>
			<DIV ID=Title_bar_Head>
				<DIV ID=Title_Head></DIV>
				<DIV ID=Title>
					<img border="0" width="13" height="13" src="<app:ContextPath/>/gximages/style1/title_arrow.gif" />
					菜单设置
				</DIV>
				<DIV ID=Title_End></DIV>
				<DIV ID=Title_bar_bg></DIV>
			</DIV>
			<DIV ID=Title_bar_Tail>
				<DIV ID=Title_FuncBar>
					<ul>
						<LI CLASS=title><a name="BTN39262680015M51I" href="/OAapp/WebObjects/OAapp.woa/wo/com.oa8000.proj.oasp12.Oasp1310/6DphZ1NRBtPLeMmAVSmnqg/21.0.11.0.9.0.0"></a>

    <div onclick="submitButton('DELETE');" class="Btn">
        删除
    </div>

</LI>
					
						<LI CLASS=line></LI>
						<LI CLASS=title><a name="BTN39262680015V2GQ" href="/OAapp/WebObjects/OAapp.woa/wo/com.oa8000.proj.oasp12.Oasp1310/6DphZ1NRBtPLeMmAVSmnqg/21.0.11.0.15.0.0"></a>

    <div onclick="submitButton('UPDATE');" class="Btn">
        修改
    </div>

</LI>
						<LI CLASS=line></LI>
						<LI CLASS=title><a name="BTN39262680015Q107" href="<app:ContextPath/>/addMenuView.html">

    <div  class="Btn">
        新建
    </div></a>

</LI>
						<LI CLASS=line></LI>
						
					</ul>
				</DIV>
			</DIV>
		</DIV>
		<DIV ID=MainArea>
<TABLE cellSpacing=0 cellPadding=0 border=0 width=100%>
<%
		TreeNode root = (TreeNode)request.getAttribute("roottree");
		Vector<TreeNode> first=root.getAllChild();
		for(TreeNode n:first){
		   System.out.println("--"+n.getId()+" "+n.getPid()+" "+n.getName());
		   %>
		   <TR HEIGHT=22  class=TableDetail2>
<TD class=MemoTD width=20>&nbsp;</TD>
<TD class=MemoTD width=20>&nbsp;</TD>
<TD class=MemoTD><%=n.getName()%></TD>
    </TR><%
			if(n.hasChild()){//第一级菜单
 %>

<%Vector<TreeNode> second=n.getAllChild();

				for(TreeNode p:second){//第二级菜单
				System.out.println("----"+p.getId()+" "+p.getPid()+" "+p.getName());
				%>
				<TR HEIGHT=22  class=TableDetail2>
<TD class=MemoTD width=20>&nbsp;</TD>
<TD class=MemoTD width=20>&nbsp;</TD>
<TD class=MemoTD>&nbsp;&nbsp;<IMG class=outline id=D0 src="<app:ContextPath/>/gximages/style1/menu/menu_line_3.gif"><%=p.getName()%></TD>
    </TR>					
				<%
					if(p.hasChild()){ %>
	<%Vector<TreeNode> third=p.getAllChild();
						for(TreeNode q:third){//第三级菜单
						System.out.println("------"+q.getId()+" "+q.getPid()+" "+q.getName()+" "+q.getSrpid());
						 %>		
<TR HEIGHT=22  id=D0TR class=TableDetail2>
<TD class=MemoTD width=20>&nbsp;</TD>
<TD class=MemoTD width=20>&nbsp;</TD>
<TD class=MemoTD>&nbsp;&nbsp;&nbsp;&nbsp;<IMG class=outline id=D0 src="<app:ContextPath/>/gximages/style1/menu/menu_line_3.gif"><%=q.getName()%></TD>
    </TR>	
    <%}}}}}%>		
  </TABLE>

		
		</DIV>
	<input type="hidden" name="wosid" value="6DphZ1NRBtPLeMmAVSmnqg" /></form><form method="post" name="homeForm" action="/OAapp/WebObjects/OAapp.woa/wo/com.oa8000.proj.oasp12.Oasp1310/6DphZ1NRBtPLeMmAVSmnqg/21.0.11.1"><input type="hidden" name="alertMsg" /> <input type="hidden" name="newUrl" /> <input type="hidden" name="newWindow" />
    <input type="hidden" name="confirmMsg" /> <input type="hidden" value="OA8000增强版_TUMYSQL5--菜单设置" name="topTitle" /><input type="hidden" value="1310" name="pgID" /><input type="hidden" name="returnPage" /><input type="hidden" name="wosid" value="6DphZ1NRBtPLeMmAVSmnqg" /></form>
    <form method="post" id="menuForm" action="/OAapp/WebObjects/OAapp.woa/wo/com.oa8000.proj.oasp12.Oasp1310/6DphZ1NRBtPLeMmAVSmnqg/21.0.11.2.1"><script type="text/javascript" language="JavaScript1.2">
writeMenu(false);
</script>
<input type="hidden" name="url" /><input type="hidden" name="urlName" /><input type="hidden" name="wosid" value="6DphZ1NRBtPLeMmAVSmnqg" /></form>
</body>
</HTML>